﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ColorPicker.ascx.cs"
    Inherits="WebApplication2.UserControls.ColorPicker" %>
<style type="text/css">
    .style1
    {
        width: 50%;
    }
    td
    {
        padding: 10px;
    }
</style>
<asp:Panel runat="server" ID="myPanel">
    <table>
        <tr>
            <td style="text-align: right" class="style1">
                <asp:Label ID="Label1" runat="server" Text="Choose a color:"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="DropDownList1" runat="server">
                    <asp:ListItem>White</asp:ListItem>
                    <asp:ListItem>Green</asp:ListItem>
                    <asp:ListItem>Red</asp:ListItem>
                    <asp:ListItem>Maroon</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="text-align: center">
                <asp:Button ID="btnSelect" runat="server" Text="Select" 
                    onclick="btnSelect_Click" />
            </td>
        </tr>
    </table>
</asp:Panel>
